/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pingouin;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Hippolyte
 */
public class TServeurRessources extends Thread {

    public Partie p;
    public final String awake = new String();
    
    public static final int PORT = 8058;

    public TServeurRessources(Partie p) {
        this.p = p;
    }

    @Override
    public synchronized void run() {

        while (true) {

            p.envoiSocket();

            synchronized (awake) {

                try {
                    awake.wait();
                } catch (InterruptedException ex) {
                    Logger.getLogger(Partie.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }
    }
}
